<?php

namespace App\Controller\Admin;

use App\Controller\AbstractController;

class BaseController extends AbstractController
{
    protected function getData($isUser = true)
    {
        $data = $this->getValidatorData();
        if ($isUser && ($userId = $this->getUid(false))) {
            $data->offsetSet('admin_id', $userId);
        }
        return $data;
    }

}